package org.piggy.common.exception;

import org.piggy.common.enums.ResponseCode;
import java.io.Serial;

public class PiggyException extends BasicException {
    @Serial
    private static final long serialVersionUID = -5534700534739261461L;

    public PiggyException(ResponseCode code) {
        super(code.getMessage(), code);
    }

    public PiggyException(Throwable cause, ResponseCode code) {
        super(code.getMessage(), cause, code);
    }
}
